<template>
    <div id="box">
        <div class="spin">
             <div class="bounce1"></div>
            <div class="bounce2"></div>
            <div class="bounce3"></div>
        </div>
        <slot name="content">
            <p>稍等一下,小网正在努力加载中</p>
        </slot> 
        
    </div>
</template>


<style scoped>
#box{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color:rgba(48, 43, 99, .8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.spin{
    margin: 100px auto 0;
    width: 150px;
    text-align: center;

}
p{
    font: 22px/24px 'Microsoft JhengHei';
    color: #f5f5f5;
    margin-top: 20px;
    font-weight: 900;
}
.spin > div {
  width: 50px;
  height: 50px;
  background-color: aqua;
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: bouncedelay 1.5s infinite ease-in-out;
  animation: bouncedelay 1.5s infinite ease-in-out;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
.spin .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
 
.spin .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
@-webkit-keyframes bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0.0) }
  40% { -webkit-transform: scale(1.0) }
}
 
@keyframes bouncedelay {
  0%, 80%, 100% {
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  } 40% {
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
  }
}





</style>